import request from '@/utils/request'

export function adddev(data) {
    return request({
      url: '/device/add',
      method: 'post',
      data
    })
  }
export function getdev(data) {
    return request({
      url: '/device/select/paging',
      method: 'post',
      data:data,
    })
  }
export function deldev(data) {
    return request({
      url: '/device/delete',
      method: 'post',
      params:data,
    })
  }
export function querydev(data) {
    return request({
      url: '/device/select',
      method: 'get',
      params:data,
    })
  }
export function update(par,data) {
    return request({
      url: '/device/update',
      method: 'post',
      params:par,
      data:data,
    })
  }
export function adduser(data) {
    return request({
      url: '/system/user/register',
      method: 'post',
       data:data,
    })
  }